/*
 * @Author: AI Assistant
 * @Date: 2024-12-19
 * @Description: 模型管理模块
 */
import { Module, forwardRef } from '@nestjs/common';
import { WebbaseService } from './webbase.service';
import { WebbaseController } from './webbase.controller';
import { DbModule } from '@libs/db';
import { TypegooseModule } from 'nest-typegoose';
import { Module as ModuleModel } from '@libs/db/models/module.model';
import { Cube } from '@libs/db/models/cube.model';
import { Templates } from '@libs/db/models/templates.model';
import { WebMenu } from '@libs/db/models/webmenu.model';
import { ConfigurationModule } from '../configuration/configuration.module';
import { ListDetailModule } from '../list-detail/list-detail.module';
import { WebmenusModule } from '../webmenus/webmenus.module';

@Module({
  imports: [
    DbModule,
    forwardRef(() => ConfigurationModule),
    forwardRef(() => ListDetailModule),
    forwardRef(() => WebmenusModule),
    TypegooseModule.forFeature([ModuleModel, Cube, Templates, WebMenu])
  ],
  controllers: [WebbaseController],
  providers: [WebbaseService],
  exports: [WebbaseService],
})
export class WebbaseModule { }